<?php
/**
 * The template for displaying Archive pages.
 *
 * Used to display archive-type pages if nothing more specific matches a query.
 * For example, puts together date-based pages if no date.php file exists.
 *
 * Learn more: http://codex.wordpress.org/Template_Hierarchy
 *
 * @package WordPress
 * @subpackage Twenty_Ten
 * @since Twenty Ten 1.0
 */
// Don't load directly
if ( !defined('ABSPATH') ) { die('-1'); }
get_header();
get_sidebar();

wts_header_gallery();

// display the next and previous links
posts_nav_link();

if (have_posts()) :
	include(TEMPLATEPATH . '/gallery-loop.php');
else:
	include(TEMPLATEPATH . '/404.php');
endif;
get_footer();